package com.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author GongChengShi
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysFunction implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @TableId(value = "FUNCTION_ID", type = IdType.AUTO)
    private Integer functionId;

    /**
     * 权限父ID
     */
    @TableField("PARENT_ID")
    private Integer parentId;

    /**
     * 权限名
     */
    @TableField("FUNCTION_NAME")
    private String functionName;

    /**
     * 权限URL
     */
    @TableField("FUNCTION_URL")
    private String functionUrl;

    /**
     * 权限类型 1菜单 2功能
     */
    @TableField("FUNCTION_TYPE")
    private Boolean functionType;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 排序
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * 图标路径
     */
    private String imageUrl;


}
